- if @photos.empty?
  No photos were found that match the term
  %span.search_term
    = "\"" + params[:term] + "\""
- @photos.each do |photo|
  %table.photo.clickable{:class => ('partnered' if @gallery.photos.include?(photo))}
    %tr
      %td.photo
        %input.item_id{:type => 'hidden', :value => photo.id}
        %a{:href => photo_url(photo), :title => (photo.caption ? photo.caption : photo.filename), :alt => (photo.caption ? photo.caption : photo.filename)}
          %img.photo_thumb{:src => photo.public_filename(:thumb), :title => (photo.caption ? photo.caption : photo.filename), :alt => (photo.caption ? photo.caption : photo.filename)}